package edu.java.texbooks.scjp.collections.test04.searching;

import java.util.Comparator;

public class StringComparatorConverter implements Comparator<String> {

	@Override
	public int compare(String string1, String string2) {

		// By switching the use of the arguments in the invocation of
		// compareTo(), we get an inverted sort.

		return string2.compareTo(string1);
	}
}
